//1.设置集合结构
const { Schema, model } = require('mongoose');
const studentsSchema = new Schema({
  phone: String,
  name: String,
  gender: String,
  avatar: String, // 头像
  password: String
}, { versionKey: false });
//2.设置数据模型，同时连接数据集合

module.exports.studentsModel = model('studentsModel', studentsSchema, 'students');
